package com.atguigu.spzx.user.mapper;

import com.atguigu.spzx.model.entity.user.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: UserAddressMapper
 * Package: com.atguigu.spzx.user.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/17 17:13
 * @Version 1.0
 */
@Mapper
public interface UserAddressMapper {
    /**
     * 获取用户的地址列表
     * @return
     */
    List<UserAddress> findUserAddressList(Long userId);

    /**
     * 根据id获取用户地址
     * @param id
     * @return
     */
    UserAddress getUserAddressById(Long id);
}
